﻿using System.Text;

namespace Tumblr.API.PostType
{
    public class Quote : Common
    {
        private string _sQuote;
        private string _sSource;

        public string TheQuote
        {
            get
            {
                return _sQuote;
            }
            set
            {
                _sQuote = System.Web.HttpUtility.UrlEncode(value, Encoding.UTF8);
            }
        }

        public string Source
        {
            get
            {
                return _sSource;
            }
            set
            {
                string s = value.Replace("\r", "");
                s = s.Replace("\n", "");
                _sSource = System.Web.HttpUtility.UrlEncode(s, Encoding.UTF8);
            }
        }
    }
}